package com.wecon.dianping.request;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author Weikang  Wang
 * @program: com.wecon.dianping.request
 * @description:
 * @date 2020/3/17 16:45
 */
@Data
public class CategoryCreateReq {

    @NotBlank(message = "品类名不能为空")
    private String name;

    @NotBlank(message = "品类图标不能为空")
    private String iconUrl;

    @NotNull(message = "权重不能为空")
    private Integer sort;

}
